package pers.amos.eshop.one.service.fallback;

import cn.hutool.log.StaticLog;
import org.springframework.stereotype.Component;
import pers.amos.eshop.one.service.EshopProductInventoryService;

/**
 * @author amos wong
 * @create 2020-12-18 3:41 下午
 */
@Component
public class EshopProductInventoryServiceFallback implements EshopProductInventoryService {

    @Override
    public String findByProductId(Long productId) {
        StaticLog.info("【商品库存降级接口】出错了，直接走降级程序");
        return "降级商品库存信息";
    }
}
